package com.woniu.backparking.util;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author HashSong
 * @ClassName: BaseNumber
 * @Description: 项目中的有限枚举数字或条件
 * @date 2021/7/9 17:21
 * @Version 1.0
 */
@Component
public class BaseEnum implements Serializable {
    public enum StatusCode{
        Success("1002"),Fail("1005"),Unfind("1004"),Format("1006");
        private final String code;
        StatusCode(String code){
            this.code=code;
        }
        public String getCode(){
            return code;
        }
    }
    public enum StatusMessage{
        Success("成功"),Fail("失败"),Unfind("未找到"),Format("格式异常");
        private final String content;
        StatusMessage(String content) {
            this.content=content;
        }
        public String getContent(){
            return content;
        }
    }
}
